<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>跳转对象</title>
	</head>
	<body>
		<a href="#" onclick="closeMine()">关闭此网页</a>
	</body>
	<script type="text/javascript">
		//4窗口自己关闭
		function closeMine(){
			//点确定返回ture，点取消返回false
			let isClosed=window.confirm('是否确定关闭此网页')
			if(isClosed){
				//说明用户选了确定
				window.close()
			}
			
			
		}
	</script>
</html>
